<!DOCTYPE html>
<html lang="en">

<!-- Head tag -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="null">
    <meta name="keyword" content="null">
    <meta name="theme-color" content="#600090">
    <meta name="msapplication-navbutton-color" content="#600090">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="#600090">
    <link rel="shortcut icon" href="/assets/favicon.ico">
    <link rel="alternate" type="application/atom+xml" title="张小阳" href="/atom.xml">
    <link rel="stylesheet" href="https://cdn.bootcss.com/animate.css/3.5.2/animate.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.css">
    <title>
        
        MillZhang&#39;s blog
        
    </title>

    <link rel="canonical" href="http://millzhang.github.io/page/3/">

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="/css/bootstrap.min.css">

    <!-- Custom CSS -->
    <link rel="stylesheet" href="/css/blog-style.css">

    <!-- Pygments Github CSS -->
    <link rel="stylesheet" href="/css/syntax.css">
</head>

<!-- hack iOS CSS :active style -->
<body ontouchstart="" class="animated fadeIn">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top " id="nav-top" data-ispost = "false" data-istags="false
" data-ishome = "true" >
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand animated pulse" href="/">
                <span class="brand-logo">
                    MillZhang
                </span>
            </a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <!-- Known Issue, found by Hux:
            <nav>'s height woule be hold on by its content.
            so, when navbar scale out, the <nav> will cover tags.
            also mask any touch event of tags, unfortunately.
        -->
        <!-- /.navbar-collapse -->
        <div id="huxblog_navbar">
            <div class="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="/"><i class="fa fa-home"></i>主页</a>
                    </li>
                   <li>
                        <a href="/tags"><i class="fa fa-tags"></i>归档</a>
                    </li>
                    <li>
                        <a href="/about"><i class="fa fa-user"></i>关于</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- /.container -->
</nav>
<script>
    // Drop Bootstarp low-performance Navbar
    // Use customize navbar with high-quality material design animation
    // in high-perf jank-free CSS3 implementation
//    var $body   = document.body;
    var $toggle = document.querySelector('.navbar-toggle');
    var $navbar = document.querySelector('#huxblog_navbar');
    var $collapse = document.querySelector('.navbar-collapse');

    $toggle.addEventListener('click', handleMagic)
    function handleMagic(e){
        if ($navbar.className.indexOf('in') > 0) {
        // CLOSE
            $navbar.className = " ";
            // wait until animation end.
            setTimeout(function(){
                // prevent frequently toggle
                if($navbar.className.indexOf('in') < 0) {
                    $collapse.style.height = "0px"
                }
            },400)
        }else{
        // OPEN
            $collapse.style.height = "auto"
            $navbar.className += " in";
        }
    }
</script>

<!-- Main Content -->


<style>

    .custom-haojen-container .post-preview:nth-of-type(1),
    .custom-haojen-container .post-preview-poetry:nth-of-type(1) {
        text-align: center;
        background-repeat: no-repeat;
        border-radius: 3px;
        background-size: cover;
        padding: 0;
        height: 300px;
        display: flex;
        justify-content:center;
        flex-wrap:wrap;
        align-items: center;
        width: 100%;
        position:relative;
    }

    .custom-haojen-container .post-preview .post-preview-image{
        display:none;
    }

    .custom-haojen-container .post-preview:nth-of-type(1) .post-preview-image{
        display:block;
        position:absolute;
        width:100%;
        left:0;
        top:0;
        height:100%;
        z-index:-1;
       overflow:hidden;
    }

    .custom-haojen-container .post-preview:nth-of-type(1) .post-preview-image img{
        margin:0;
        width:100%;
    }

    .custom-haojen-container .post-preview:nth-of-type(1) .post-preview-image img.blur{
        -webkit-filter: blur(10px); /* Chrome, Opera */
       -moz-filter: blur(5px);
        -ms-filter: blur(5px);    
            filter: blur(5px);
    }

    /*去掉诗歌的背景图片*/
    .custom-haojen-container .post-preview-poetry:nth-of-type(1) {
        background-image: none !important;
        background-color: rgba(255, 248, 220, 0.5);
    }

    .custom-haojen-container .post-preview:nth-child(1) h2,
    .custom-haojen-container .post-preview:nth-child(1) .post-meta,
    .custom-haojen-container .post-preview:nth-child(1) .post-subtitle {
        text-shadow: 0 0 40px rgba(0, 0, 0, 1);
        letter-spacing: 1px;
        color: #fff;
        margin-top: 0;
        padding-left: 60px;
        padding-right: 60px;
    }

    .custom-haojen-container .post-preview:nth-child(1) .post-meta {
        font-size: .9em;
        font-weight: 300;
        margin-top: 0;
    }

    .custom-haojen-container .post-preview-poetry:nth-child(1) .post-subtitle {
        letter-spacing: 6px;
        font-size: 18px;
        font-family: unset;
        font-weight: 400;
        color: rgba(0, 0, 0, .75)
    }

    /*不显示摘要*/
    .custom-haojen-container .post-preview:nth-child(1) .post-content-preview {
        display: none
    }

    /*只第一个显示背景图片*/
    .custom-haojen-container .post-preview:not(:nth-child(1)) {
        background-image: none !important;
    }

    /*第一个分界线去掉*/
    .custom-haojen-container hr:nth-of-type(1) {
        display: none;
    }

    /*主题*/
    .custom-haojen-container .post-preview:nth-of-type(1) > a {
        height:auto;
    }

    /*诗词标题*/
    .custom-haojen-container .post-preview-poetry:nth-child(1) h2 {
        font-size: 35px;
        font-family: STKaiti;
        color: rgba(0, 0, 0, .8);
    }

    .custom-haojen-container .post-preview-poetry:nth-of-type(1) .post-meta {
        color: #0e2231;
    }

    @media (max-width: 768px) {
        .custom-haojen-container .post-preview:nth-child(1) {
            height: 240px;
        }

        .custom-haojen-container .post-preview-poetry:nth-child(1) h2 {
            font-size: 28px !important;
            margin-top: 0;
        }

        .custom-haojen-container .post-preview:nth-child(1) .post-subtitle {
            font-size: 18px;
            font-weight: 400;
            padding-left: 0;
            padding-right: 0;
        }

        .custom-haojen-container .post-preview:nth-of-type(1) > a {
            padding: 20px
        }
    }

    /*手机屏幕*/
    @media (max-width: 400px) {
        .custom-haojen-container .post-preview:nth-child(1) {
            height: 195px;
        }

        .custom-haojen-container .post-preview-poetry:nth-child(1) h2 {
            font-size: 20px !important;
        }

        .custom-haojen-container .post-preview:nth-child(1) .post-subtitle {
            font-size: 16px;
        }

        .custom-haojen-container .post-preview:nth-child(1) a {
            
        }
    }
</style>

<!-- Page Header -->
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 visible-xs-block visible-sm-block">
    <div class="row">
        <header class="intro-header">
            <div class="container">
                <div class="site-heading text-center">
                    <div class="about-me">
                        <!--移动端头部显示-->
                        <img src="http://oritfw5nq.bkt.clouddn.com/avatar.jpg?imageslim"/>
                        <h5><a href="/about/">MillZhang</a></h5>
                        <p>心有猛虎,细嗅蔷薇</p>
                    </div>
                </div>
            </div>
        </header>
    </div>
</div>
<!-- Main Content -->
<div class="container custom-haojen-container">
    <!-- Post Container -->
    <div class="row">
        <div class="col-lg-8 col-lg-offset-1 col-md-8 col-md-offset-1 col-sm-12 col-xs-12 post-container">
            <!-- Main Content -->




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/15/2017-note/16.深入理解javascript-50-3/">
            <h2 class="post-title">
                Review深入理解Javascript系列(三)
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-15
            <i class="fa fa-tags" data-index="6" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
              <a href="/tags/#深入理解Javascript系列/" rel="tag" class="index-tag">
                深入理解Javascript系列
              </a>
            
        </p>
        
        <h3 class="post-subtitle">
            解析Module模式
        </h3>
        
        <div class="post-content-preview">
            <p>
                Module模式的基本特征
模块化,可重用
封装,不污染全局的命名空间
方法私有化,只暴露public方法

简单实现1234567891011121314151617var module = function()&#123;    //声明私有成员变量    var square = func..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/wall-303.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/15/2017-note/15.深入理解javascript-50-2/">
            <h2 class="post-title">
                Review深入理解Javascript系列(二)
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-15
            <i class="fa fa-tags" data-index="6" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
              <a href="/tags/#深入理解Javascript系列/" rel="tag" class="index-tag">
                深入理解Javascript系列
              </a>
            
        </p>
        
        <h3 class="post-subtitle">
            揭秘命名函数表达式
        </h3>
        
        <div class="post-content-preview">
            <p>
                区分:函数表达式和函数声明
函数声明必须带标识符(即函数名称),而函数表达式可以省略

这个是ECMA规范的定义,那么这样概念相对就比较清晰了,凡是没有声明函数名称的肯定就是函数表达式了,这一点可以先明确.然后,其他情况可以通过上下文来判断,如果函数作为赋值表达式的一部分的话,那么它就是一个函数..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/1b32d50871844232d16f38b3f3ab93f4.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/14/2017-note/14.页面回到顶部滚动按钮实现/">
            <h2 class="post-title">
                页面回到顶部滚动按钮平滑滚动
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-14
            <i class="fa fa-tags" data-index="5" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
        </p>
        
        <div class="post-content-preview">
            <p>
                HTML1&lt;a id="backtop" class="border-bottom" href="javascript:;"&gt;回顶部&lt;/a&gt;
CSS1234567891011121314151617.border-bottom &#123;  padding: 10px;..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/07644812f3efa96582a00dc1df42f7e0.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/13/2017-note/13.Hexo个人博客搭建笔录/">
            <h2 class="post-title">
                Hexo个人博客搭建笔录
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-13
            <i class="fa fa-tags" data-index="1" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#node/" rel="tag" class="index-tag">
                node
              </a>
            
              <a href="/tags/#hexo/" rel="tag" class="index-tag">
                hexo
              </a>
            
        </p>
        
        <div class="post-content-preview">
            <p>
                参考
hexo官方文档
博客

环境装备
nodejs(最后大于6.0);
hexo,通过npm install hexo -g安装;
github仓库(username.github.io)


常用命令
hexo init创建文件夹;
hexo clean清除文件;
hexo g/hexo ..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/wall-303.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/13/2017-note/12.node笔录/">
            <h2 class="post-title">
                node笔录
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-13
            <i class="fa fa-tags" data-index="6" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#node/" rel="tag" class="index-tag">
                node
              </a>
            
        </p>
        
        <div class="post-content-preview">
            <p>
                相关资源
中文网
阿里云镜像

淘宝npm镜像安装1npm install -g cnpm --registry=https://registry.npm.taobao.org
参考

npm查看全局安装的模块目录:C:\Users\lupn\AppData\Roaming
1npm ls -g..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/wall-303.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/12/2017-note/11.深入理解javascript-50-1/">
            <h2 class="post-title">
                Review深入理解Javascript系列(一)
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-12
            <i class="fa fa-tags" data-index="5" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
              <a href="/tags/#深入理解Javascript系列/" rel="tag" class="index-tag">
                深入理解Javascript系列
              </a>
            
        </p>
        
        <h3 class="post-subtitle">
            编写高质量的Javascript代码
        </h3>
        
        <div class="post-content-preview">
            <p>
                说明系列文章是以下文章的读后感,有copy部分,也有自己练笔和理解部分,特此说明,以后不再赘述:

汤姆大叔深入理解Javascript系列
看云

最小全局变量Minimizing Global全局变量命名易与第三方的脚本引起冲突,所以尽可能少的使用全局变量是很重要的.相关策略有:命名空间模式..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/1b32d50871844232d16f38b3f3ab93f4.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/11/2017-note/10.闭包测试/">
            <h2 class="post-title">
                闭包测试
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-11
            <i class="fa fa-tags" data-index="6" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
        </p>
        
        <div class="post-content-preview">
            <p>
                简单一题12for(var i=0;i&lt;5;i++)&#123;console.log(i);&#125;
直接正常循环输出:

0,1,2,3,4


下面这行代码呢?12345for (var i = 0; i &lt; 5; i++) &#123;  setTimeout(funct..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/wall-303.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<div class="post-preview ">
    <div class="post-preview-content">
        <a href="/2017/06/09/2017-note/09.ES6字符串扩展/">
            <h2 class="post-title">
                ES6字符串扩展
            </h2>
        </a>
        <p class="post-meta">
            <i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-09
            <i class="fa fa-tags" data-index="5" aria-hidden="true" style="margin-left:12px;"></i>
            
              <a href="/tags/#javascript/" rel="tag" class="index-tag">
                javascript
              </a>
            
              <a href="/tags/#es6/" rel="tag" class="index-tag">
                es6
              </a>
            
        </p>
        
        <div class="post-content-preview">
            <p>
                字符串的Unicode表示法目测用的比较少,略过.
codePointAt()一个常识:

JavaScript内部，字符以UTF-16的格式储存，每个字符固定为2个字节。对于那些需要4个字节储存的字符（Unicode码点大于0xFFFF的字符），JavaScript会认为它们是两个字符。


..
            </p>
        </div>
    </div>
    <div class="post-preview-image">
        <img src="http://oritfw5nq.bkt.clouddn.com/wall-303.jpg?imageView2/0/format/jpg/interlace/1/q/85|watermark/2/text/QnkgTWlsbHpoYW5n/font/5b6u6L2v6ZuF6buR/fontsize/480/fill/I0ZERkRGRA==/dissolve/56/gravity/SouthEast/dx/10/dy/10|imageslim">
    </div>
</div>

<hr>




<!-- 翻页 pager -->

<ul class="pager">
    
    <li class="previous">
        <a href="/page/2/">&larr; 上一页</a>
    </li>
    
    
    <li class="next">
        <a href="/page/4/">下一页 &rarr;</a>
    </li>
    
</ul>

<!-- 网易云音乐-->

<iframe class="cloud-music" frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 
    src="//music.163.com/outchain/player?type=2&amp;id=25731320&amp;auto=0&amp;height=66">
</iframe>
<!-- <canvas id="canvas"></canvas> -->
<script src="/js/particle.js"></script>

        </div>
        <!-- Sidebar Container -->
        <div class="
                col-lg-3 col-lg-offset-0
                col-md-3 col-md-offset-0
                col-sm-12
                col-xs-12
                sidebar-container
            ">

            <!-- About Me -->
            <section class="visible-md visible-lg" style="padding: 0 18px">
                <div class="short-about">
                    <!--侧边栏头像-->
                    
                    <img src="http://oritfw5nq.bkt.clouddn.com/avatar.jpg?imageslim"/>
                    
                    <h5><a href="/about/">MillZhang</a></h5>
                    
                    <p>心有猛虎,细嗅蔷薇</p>
                    
                    <hr>
                    <!-- SNS Link 社交 -->
                    <ul class="list-inline">
                        
                        
                        

                        
                        <li>
                            <a target="_blank" href="http://weibo.com/mauvelather">
                                        <span class="fa-stack fa-lg">
                                            <i class="fa fa-circle fa-stack-2x"></i>
                                            <i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
                                        </span>
                            </a>
                        </li>
                        

                        

                        
                        <li>
                            <a target="_blank" href="https://github.com/MillZhang">
                                        <span class="fa-stack fa-lg">
                                            <i class="fa fa-circle fa-stack-2x"></i>
                                            <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                                        </span>
                            </a>
                        </li>
                        

                        
                    </ul>
                </div>
            </section>

            <!-- Featured Tags  标签 -->
            
            <section>
                <div class="tags">
                    
                    
                    <a href="/tags/#css" title="css"
                       rel="2">css</a>
                    
                    
                    
                    <a href="/tags/#mobile" title="mobile"
                       rel="2">mobile</a>
                    
                    
                    
                    <a href="/tags/#node" title="node"
                       rel="4">node</a>
                    
                    
                    
                    <a href="/tags/#javascript" title="javascript"
                       rel="18">javascript</a>
                    
                    
                    
                    <a href="/tags/#正则" title="正则"
                       rel="1">正则</a>
                    
                    
                    
                    <a href="/tags/#深入理解Javascript系列" title="深入理解Javascript系列"
                       rel="5">深入理解Javascript系列</a>
                    
                    
                    
                    <a href="/tags/#vue" title="vue"
                       rel="4">vue</a>
                    
                    
                    
                    <a href="/tags/#hexo" title="hexo"
                       rel="1">hexo</a>
                    
                    
                    
                    <a href="/tags/#随笔" title="随笔"
                       rel="1">随笔</a>
                    
                    
                    
                    <a href="/tags/#fabric" title="fabric"
                       rel="1">fabric</a>
                    
                    
                    
                    <a href="/tags/#unfinished" title="unfinished"
                       rel="8">unfinished</a>
                    
                    
                    
                    <a href="/tags/#es6" title="es6"
                       rel="3">es6</a>
                    
                    
                    
                    <a href="/tags/#canvas" title="canvas"
                       rel="2">canvas</a>
                    
                    
                    
                    <a href="/tags/#笔记" title="笔记"
                       rel="1">笔记</a>
                    
                    
                    
                    <a href="/tags/#books" title="books"
                       rel="1">books</a>
                    
                    
                    
                    <a href="/tags/#articles" title="articles"
                       rel="1">articles</a>
                    
                    
                    
                    <a href="/tags/#tools" title="tools"
                       rel="1">tools</a>
                    
                    
                </div>
            </section>
            

            

        </div>
    </div>
</div>

<!-- Footer -->
<!-- Footer -->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 text-center">
                <p class="copyright text-muted">
                    Copyright &copy; MillZhang 2017
                    <br>
                </p>
            </div>
        </div>
    </div>
</footer>

<!-- jQuery -->
<script src="/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/js/blog.js"></script>

<!-- async load function -->
<script>
    function async(u, c) {
      var d = document, t = 'script',
          o = d.createElement(t),
          s = d.getElementsByTagName(t)[0];
      o.src = u;
      if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
      s.parentNode.insertBefore(o, s);
    }
</script>

<!-- jquery.tagcloud.js -->
<script>
    // only load tagcloud.js in tag.html
    if($('#tag_cloud').length !== 0){
        async("http://oritfw5nq.bkt.clouddn.com/jquery.tagcloud.js",function(){
            $.fn.tagcloud.defaults = {
                //size: {start: 1, end: 1, unit: 'em'},
                color: {start: '#bbbbee', end: '#0085a1'},
            };
            $('#tag_cloud a').tagcloud();
        })
    }
</script>

<!--fastClick.js -->
<script>
    async("//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){
        var $nav = document.querySelector("nav");
        if($nav) FastClick.attach($nav);
    })
</script>



<!--wechat title img-->
<img class="wechat-title-img" src="http://oritfw5nq.bkt.clouddn.com/avatar.jpg?imageslim">
<a id="backtop" class="border-bottom" href="javascript:;">回顶部</a>
<script type="application/javascript">
var docOuter = document.body.scrollTop ? document.body : document.documentElement;
var backToTop = function(rate) {
  var doc = document.body.scrollTop ? document.body : document.documentElement;
  var scrollTop = doc.scrollTop;
  var top = function() {
    scrollTop = scrollTop + (0 - scrollTop) / (rate || 2);
    if (scrollTop < 1) {
      doc.scrollTop = 0;
      return;
    }
    doc.scrollTop = scrollTop;
    // 动画gogogo!
    requestAnimationFrame(top);
  };
  top();
};
var topBtn = document.getElementById('backtop'),
    docTop = docOuter.scrollTop;
if(docTop>=300){
  topBtn.style.opacity = 1;
}

topBtn.onclick = function() {
  backToTop(12)
}
window.onscroll = function(e) {
  var doc = document.body.scrollTop ? document.body : document.documentElement;
  var scrollTop = doc.scrollTop;
  if (scrollTop >= 300) {
    topBtn.style.opacity = 1;
  } else {
    topBtn.style.opacity = 0;
  }
}
</script>
</body>

</html>
